/**
 * 	write on 2005-11-9 14:52:24.
 */
package org.nanhill.xmlro.sro.model;

import org.nanhill.xmlro.Deserializer;
import org.nanhill.xmlro.XmlroException;
import org.nanhill.xmlro.XmlroInput;

/**
 * @author alin
 * 
 */
public class SroBase64Deserializer implements Deserializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.xmlro.model.Deserializer#readElement(org.nanhill.protocol.xmlro.input.Input)
	 */
	public Object readElement(XmlroInput input) throws XmlroException {
		// skip base64 start tag
		//input.next();
		// assert the pointed node is text
		//input.assertText();
		// read text
		byte[] value = input.readBase64();
		// skip text tag
		//input.next();
		// assert the pointed node is base64 end tag
		//input.assertBase64EndTag();
		// skip base64 end tag
		//input.next();
		return value;
	}

}
